<?php

namespace common\models\linkedcare;

use Yii;

/**
 * This is the model class for table "fy_linkedcare_patients_fee_detail".
 *
 * @property int $id
 * @property int|null $linkcared_patient_id 患者ID
 * @property int|null $chargeOrderId
 * @property float|null $totalPrice
 * @property float|null $planPrice
 * @property float|null $discountPrice
 * @property float|null $discount
 * @property string|null $payType 实收
 * @property float|null $srcFinalPrice 应收金额
 * @property float|null $actualPrice 实收金额
 * @property string|null $payDateTime 首次收费时间
 * @property int|null $payeeId 收费人ID
 * @property string|null $payee 收费人
 * @property int|null $doctorId 医生ID
 * @property string|null $doctorName 医生
 * @property int|null $onlineConsultantId
 * @property string|null $onlineConsultantName
 * @property string|null $billNo 账单号
 * @property string|null $comments 备注
 * @property string|null $status 账单状态
 * @property string $created_time 创建时间
 * @property string $updated_time 更新时间
 */
class LinkedcarePatientsFeeDetail extends \common\models\base\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'fy_linkedcare_patients_fee_detail';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['linkcared_patient_id', 'chargeOrderId', 'payeeId', 'doctorId', 'onlineConsultantId'], 'integer'],
            [['totalPrice', 'planPrice', 'discountPrice', 'discount', 'srcFinalPrice', 'actualPrice'], 'number'],
            [['payDateTime', 'created_time', 'updated_time'], 'safe'],
            [['comments'], 'string'],
            [['payType'], 'string', 'max' => 150],
            [['payee', 'doctorName', 'onlineConsultantName', 'billNo', 'status'], 'string', 'max' => 100],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'linkcared_patient_id' => '患者ID',
            'chargeOrderId' => 'Charge Order ID',
            'totalPrice' => 'Total Price',
            'planPrice' => 'Plan Price',
            'discountPrice' => 'Discount Price',
            'discount' => 'Discount',
            'payType' => '实收',
            'srcFinalPrice' => '应收金额',
            'actualPrice' => '实收金额',
            'payDateTime' => '首次收费时间',
            'payeeId' => '收费人ID',
            'payee' => '收费人',
            'doctorId' => '医生ID',
            'doctorName' => '医生',
            'onlineConsultantId' => 'Online Consultant ID',
            'onlineConsultantName' => 'Online Consultant Name',
            'billNo' => '账单号',
            'comments' => '备注',
            'status' => '账单状态',
            'created_time' => '创建时间',
            'updated_time' => '更新时间',
        ];
    }
}
